package com.zy.dao;

import com.github.pagehelper.Page;
import com.zy.dao.CheckItemDao;
import com.zy.pojo.CheckItem;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class textDao {


	@Test
	public void test(){
		ApplicationContext context = new ClassPathXmlApplicationContext("spring-dao.xml");
		CheckItemDao bean = context.getBean(CheckItemDao.class);
//		Page<CheckItem> page = bean.selectByCondition("0031");
//		List<CheckItem> result = page.getResult();
//		System.out.println(result);

//		long countByCheckItemId = bean.findCountByCheckItemId(50);
//		System.out.println(countByCheckItemId);

		bean.edit(new CheckItem(new Integer(94),"0067","测试数据01","0","88888",new Float(9999),"1","","测试数据"));
	}
}
